<h:panelGroup xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j" >

   	<rich:tabPanel switchType="client" selectedTab="tab_en">
   		<rich:tab name="tab_en" label="#{messages.lang_en_msg}" >
   			<table>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.name_msg}" />
    					<span class="m">*</span>
    				</td>
    				<td>
    					<h:inputText value="#{item.name_en}" required="true" readonly="#{empty readonly ? false : readonly}"/>
    				</td>
    			</tr>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.desc_msg}" />
    					<s:fragment rendered="#{desc_required}">
	    					<span class="m">*</span>
    					</s:fragment>
    				</td>
    				<td>
<!--    					<h:inputTextarea value="#{item.desc_en}" rows="15" cols="50"/>-->
    					<rich:editor value="#{item.desc_en}" theme="advanced" plugins="save,paste" width="600" height="250" 
    						required="#{empty desc_required ? false : desc_required}"
    						readonly="#{empty readonly ? false : readonly}">
							<f:param name="theme_advanced_buttons1" value="bold,italic,underline,cut,copy,paste,pasteword"/>
							<f:param name="theme_advanced_toolbar_location" value="top"/>                               
							<f:param name="theme_advanced_toolbar_align" value="left"/>
						</rich:editor>
    				</td>
    			</tr>
    		</table>
   		</rich:tab>
   		<rich:tab name="tab_sr" label="#{messages.lang_sr_msg}">
   			<table>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.name_msg}" />
    				</td>
    				<td>
    					<h:inputText value="#{item.name_sr}" readonly="#{empty readonly ? false : readonly}"/>
    				</td>
    			</tr>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.desc_msg}" />
    				</td>
    				<td>
    					<rich:editor value="#{item.desc_sr}" theme="advanced" plugins="save,paste" width="600" height="250"
    						readonly="#{empty readonly ? false : readonly}">
							<f:param name="theme_advanced_buttons1" value="bold,italic,underline, cut,copy,paste,pasteword"/>
							<f:param name="theme_advanced_toolbar_location" value="top"/>                               
							<f:param name="theme_advanced_toolbar_align" value="left"/>
						</rich:editor>
    				</td>
    			</tr>
    		</table>
   		</rich:tab>
   		<rich:tab name="tab_es" label="#{messages.lang_es_msg}" >
   			<table>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.name_msg}" />
    				</td>
    				<td>
    					<h:inputText value="#{item.name_es}" readonly="#{empty readonly ? false : readonly}"/>
    				</td>
    			</tr>
    			<tr>
    				<td>
    					<h:outputText value="#{messages.desc_msg}" />
    				</td>
    				<td>
    					<rich:editor value="#{item.desc_es}" theme="advanced" plugins="save,paste" width="600" height="250"
    						readonly="#{empty readonly ? false : readonly}">
							<f:param name="theme_advanced_buttons1" value="bold,italic,underline, cut,copy,paste,pasteword"/>
							<f:param name="theme_advanced_toolbar_location" value="top"/>                               
							<f:param name="theme_advanced_toolbar_align" value="left"/>
						</rich:editor>
    				</td>
    			</tr>
    		</table>
   		</rich:tab>
   	</rich:tabPanel>
</h:panelGroup>